import HttpUtils from '../../utils/http.utils';
const urls = {
	'userlist':globalConfig.apiPath.v1 + 'api/auth/v1/organizations',
	'deleteID':globalConfig.apiPath.v1 + 'api/auth/v1/organizations/',
	'queryByIdAPP1':globalConfig.apiPath.v1 + 'api/auth/v1/organizations/',
	'createdp':globalConfig.apiPath.v1 + 'api/auth/v1/organizations',
    'updatedp':globalConfig.apiPath.v1 + 'api/auth/v1/organizations/'
}

function _getDepartmentList(params={}){
	return HttpUtils.get(urls.userlist,params);
}

let DepartmentSrv = {
	getDepartmentList:function _getDepartmentList(params={}){
        return HttpUtils.get(urls.userlist,params);
    },
    deleteID:function (params={}){
        return HttpUtils.delete(urls.deleteID+params.id);
    },
    createdp:function (params={}){
        return HttpUtils.post(urls.createdp,params);
    },
    updatedp:function (params={}){
        return HttpUtils.post(urls.updatedp+params.id,params);
    },
    queryByIdAPP1:function (params={}){
        return HttpUtils.get(urls.queryByIdAPP1+params.id);
    },
};

export {DepartmentSrv};
